<ion-view title="供应商选择">


    <ion-content ng-controller="quoteProviderController">

        <ion-list>

            <ion-item ng-repeat="item in data.providers"
                      class="item-thumbnail-left" ng-click="onItemClick(item)">

                <input type="checkbox" ng-model="item.isCheck">

                <h2>{{item.id}}</h2>

                <p>{{item.name}}</p>

                <div class="col">

                    <select ng-change="selectChange(item)" ng-if="item.providers.length>1" ng-model="item.selectItem"
                            ng-options="itemOp.insBranchName for itemOp in item.providers">
                        <!--<option ng-options="itemOp in item.providers" value="{{itemOp.id}}">-->
                        <!--{{itemOp.insBranchName}}-->
                        <!--</option>-->
                        <option value="">请选择</option>

                    </select>

                    <div ng-if="item.providers.length==1">{{item.providers[0].insBranchName}}</div>
                </div>
            </ion-item>
        </ion-list>


    </ion-content>


</ion-view>